package com.sharedlease.utils;

import org.springframework.boot.autoconfigure.data.redis.RedisProperties;
import redis.clients.jedis.Jedis;

public class RedisUtils {
    public static String ip="47.115.56.157";
    public static Integer port=6379;
    public static String password="Ca11MeWZF!";
    public static Integer databaseIndex=2;
    public static Jedis getConnection(){
        Jedis jedis = new Jedis(ip, port);
        jedis.auth(password);
        jedis.select(databaseIndex);
        return jedis;
    }
}
